package cn.tedu.boot.ers.pojo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("管理员修改密码DTO")
public class AdminUpdatePasswordDTO implements Serializable {
    @NotNull(message = "管理员id不能为空")
    @ApiModelProperty(value = "管理员id", name = "id", example = "1")
    private Long id;
    @NotNull(message = "管理员原始密码不能为空")
    @ApiModelProperty(value = "管理员原始密码", name = "rawPassword", example = "168168")
    private String rawPassword;
    @NotNull(message = "管理员新密码不能为空")
    @ApiModelProperty(value = "管理员新密码", name = "password", example = "88888888")
    private String password;
}
